import { createRouter, createWebHistory } from 'vue-router'
import HomeView from '../views/HomeView.vue'

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/',
      name: 'home',
      component: HomeView,
      
    },
    {
      path: '/my',
      name: 'my',
      component: () => import('../views/MyView.vue'),
    },
    {
      path: '/act',
      name: 'act',
      component: () => import('../views/ActiveView.vue'),
    },
    {
      path: '/forum',
      name: 'forum',
      component: () => import('../views/ForumView.vue'),
    },
    {
      path: '/shop',
      name: 'shop',
      component: () => import('../views/ShopView.vue'),
    },
    {
      path: '/news',
      name: 'news',
      component: () => import('../views/NewsDetailView.vue'),
    },
  ],
})

export default router
